﻿using System.Collections.ObjectModel;
using System.Runtime.Serialization;

namespace Ooaavee.Data.Queries
{
    [CollectionDataContract]
    public sealed class QueryResultCollection : Collection<QueryResult>
    {
        internal QueryResult FirstOrNull()
        {
            QueryResult first = null;
            if (Count > 0)
            {
                first = this[0];
            }
            return first;
        }
    }
}
